package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.EcologyCastExchangeConf;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.ecology.AdminExchangeCastUpperLimitConfVO;
import com.sc.nft.entity.vo.ecology.ExchangeCastUpperLimitConfVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 生态-铸造上限兑换配置表(sc_ecology_cast_exchange_conf)数据Mapper
 *
 * @author Sun
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2024-06-07 09:03:55
 */
@Mapper
public interface EcologyCastExchangeConfMapper extends BaseMapper<EcologyCastExchangeConf> {

    /**
     * 获取铸造兑换配置列表
     *
     * @param ecologyCastId
     * @return
     */
    List<AdminExchangeCastUpperLimitConfVO> getExchangeCastUpperLimitConf(@Param("ecologyCastId") Long ecologyCastId);

    /**
     * 获取生态铸造上限兑换配置
     *
     * @param ecologyCastId 生态铸造id
     * @return
     */
    List<ExchangeCastUpperLimitConfVO> getExchangeCastUpperLimitConfList(@Param("userId") Long userId, @Param("ecologyCastId") Long ecologyCastId);
}
